import React from "react";
import { View } from '@tarojs/components'
import { Cell, Button } from '@antmjs/vantui'
import Taro from '@tarojs/taro';

import './index.scss'


function MineDetail() {

  const signOut = () => {
    Taro.removeStorageSync('auth-token')
    Taro.reLaunch({
      url: "/login/login/index"
    })
  }


  return (
    <View className='set-index'>
      <View className='set-list'>
        <Cell title='第三方信息共享清单' titleStyle={{ fontSize: '16px' }} isLink linkType='navigateTo' url='/mineDetail/shareManifest/index'></Cell>
        <Cell title='用户服务协议' titleStyle={{ fontSize: '16px' }} isLink linkType='navigateTo' url='/mineDetail/serviceAgreement/index'></Cell>
        <Cell title='隐私政策' titleStyle={{ fontSize: '16px' }} isLink linkType='navigateTo' url='/mineDetail/privacyPolicy/index'></Cell>
      </View >
      <View className='button-group'>
        {/* <Button >切换账号</Button> */}
        <Button className='red' onTap={signOut}>退出登录</Button>
      </View>

    </View>


  )
}

export default MineDetail
